/**
 * 
 */
package cn.ad.server.web.spring.model.adview;

/**
 * 地理信息
 * @author Administrator
 *
 */
public class Geo {
	
	/**
	 * 纬度
	 */
	private float lat;
	
	/**
	 * 经度
	 */
	private float lon;
	
	/**
	 * 获取经纬度数据时的时间戳
	 */
	private int timestamp;
	
	/**
	 * 国家，使用 ISO-3166-1 Alpha-3
	 */
	private String country;
	
	/**
	 * 地区，使用 ISO 3166-2
	 */
	private String region;
	
	/**
	 * 城市（暂不支持），使用http://www.unece.org/cefact/locode/service/location.html
	 */
	private String city;
	
	/**
	 * 数据来源
		1-GPS
		2-IP
		3-User provided
	 */
	private int type;
	
	/**
	 * 扩展内容
	 */
	private Object ext;

	/**
	 * @return the lat
	 */
	public float getLat() {
		return lat;
	}

	/**
	 * @param lat the lat to set
	 */
	public void setLat(float lat) {
		this.lat = lat;
	}

	/**
	 * @return the lon
	 */
	public float getLon() {
		return lon;
	}

	/**
	 * @param lon the lon to set
	 */
	public void setLon(float lon) {
		this.lon = lon;
	}

	/**
	 * @return the timestamp
	 */
	public int getTimestamp() {
		return timestamp;
	}

	/**
	 * @param timestamp the timestamp to set
	 */
	public void setTimestamp(int timestamp) {
		this.timestamp = timestamp;
	}

	/**
	 * @return the country
	 */
	public String getCountry() {
		return country;
	}

	/**
	 * @param country the country to set
	 */
	public void setCountry(String country) {
		this.country = country;
	}

	/**
	 * @return the region
	 */
	public String getRegion() {
		return region;
	}

	/**
	 * @param region the region to set
	 */
	public void setRegion(String region) {
		this.region = region;
	}

	/**
	 * @return the city
	 */
	public String getCity() {
		return city;
	}

	/**
	 * @param city the city to set
	 */
	public void setCity(String city) {
		this.city = city;
	}

	/**
	 * @return the type
	 */
	public int getType() {
		return type;
	}

	/**
	 * @param type the type to set
	 */
	public void setType(int type) {
		this.type = type;
	}

	/**
	 * @return the ext
	 */
	public Object getExt() {
		return ext;
	}

	/**
	 * @param ext the ext to set
	 */
	public void setExt(Object ext) {
		this.ext = ext;
	}
}
